Skip to content

Make the "are syntax errors allowed?" condition independent of evaluation #2773

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2024

Conversation

DougGregor
Copy link
Member

The compiler needs to be more careful about when it actually evaluates an #if condition, because canImport can have side effects. Make it easier to answer the question "are syntax errors allowed?" without having to evaluate the condition every time.

…tion

The compiler needs to be more careful about when it actually evaluates
an #if condition, because canImport can have side effects. Make it easier
to answer the question "are syntax errors allowed?" without having to
evaluate the condition every time.
@DougGregor
Copy link
Member Author

@swift-ci please test

@DougGregor DougGregor merged commit 9fdc7f4 into swiftlang:main Aug 4, 2024
3 checks passed
@DougGregor DougGregor deleted the are-syntax-errors-allowed branch August 4, 2024 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants